package org.bing.engine.common.message;

import org.bing.engine.utility.codec.SimpleObjectCodec;

public abstract class AbstractIoAdapter {
    protected static final SimpleObjectCodec codec = new SimpleObjectCodec();

    public String encode(Object obj) {
        return codec.encode(obj);
    }

    public Object decode(String str) {
        return codec.decode(str);
    }
}
